import java.util.Comparator;


public class movieVal {
	int sub;
	float val;
	public movieVal(int s, float v)
	{
		sub = s;
		val = v;
	}
}

class sortVal implements Comparator {
	public int compare(Object o1, Object o2) {
		movieVal s1 = (movieVal) o1;
		movieVal s2 = (movieVal) o2;
		if (s1.val < s2.val)
			return -1;
	 
		return 1;
	 }
}